import numpy as np
import cv2
# n1=np.array([1,2,3])
# n2=np.array([[1,2],[3,4]])
# print(n1)
# print(n2)
# list = [1,2,3]
# n1=np.array(list,dtype=np.float_)
# print(n1)
# print(n1.dtype)
# print(type(n1[0]))
# n=np.ones((500,300,3),np.int8)
# for i in range(500):
#     for j in range(300):
#         n1=np.random.randint(-128,127,3)
#         n[i][j]=n1
#
# cv2.imshow('rand',n)
# retval=cv2.waitKey(5000)
# n1=np.random.randint(-128,127,dtype=np.int8,size=(500,300,3))
# print(n1)
# cv2.imshow('rand',n1)
# retval=cv2.waitKey(5000)
# width=200
# height=100
# img=np.zeros((height,width),np.uint8)
# img[25:75:2,50:100:2]=255
# cv2.imshow('aaa',img)
# cv2.waitKey(5000)
n1=np.random.randint(-128,127,dtype=np.int8,size=3)
print(type(n1))
print(n1)

print(n1)
